import { Button, Flex } from 'antd'

export default function MyButton() {
  return (
    <section>
      <Flex gap="small" wrap>
        <span className="text">不同的按钮：</span>
        <Button type="primary" danger onClick={btnClick}>
          Primary Button
        </Button>
        <Button danger>Default Button</Button>
        <Button type="dashed">Dashed Button</Button>
        <Button type="text">Text Button</Button>
        <Button type="link">Link Button</Button>
      </Flex>
    </section>
  )
}

const btnClick = () => {
  console.log('btnClick')
}
